//
//  ZYXLifeTwoViewController.m
//  OCUIAdvanced
//
//  控制器的生命周期
//

#import "ZYXLifeTwoViewController.h"

@interface ZYXLifeTwoViewController ()

@end

@implementation ZYXLifeTwoViewController

/**
 *  view加载完毕
 */
- (void)viewDidLoad
{
    [super viewDidLoad];
    
    ZYXLog(@"ZYXLifeTwoViewController-viewDidLoad");
}

/**
 *  view即将显示到window上
 *
 */
- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    ZYXLog(@"ZYXLifeTwoViewController-viewWillAppear");
}

/**
 *  view显示完毕(已经显示到窗口)
 */
- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    
    ZYXLog(@"ZYXLifeTwoViewController-viewDidAppear");
}

/**
 *  view即将从window上移除(即将看不见)
 *
 */
- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    
    ZYXLog(@"ZYXLifeTwoViewController-viewWillDisappear");
}

/**
 *  view从window上完全移除(完全看不见)
 *
 */
- (void)viewDidDisappear:(BOOL)animated
{
    [super viewDidDisappear:animated];
    
    ZYXLog(@"ZYXLifeTwoViewController-viewDidDisappear");
}

/**
 *  view即将销毁的时候调用
 */
- (void)viewWillUnload
{
    [super viewWillUnload];
    
    ZYXLog(@"ZYXLifeTwoViewController-viewWillUnload");
}

/**
 *  view销毁完毕的时候调用
 */
- (void)viewDidUnload
{
    [super viewDidUnload];
    ZYXLog(@"ZYXLifeTwoViewController-viewDidUnload");
}

/**
 *  当接收到内存警告的时候
 */
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    
    ZYXLog(@"ZYXLifeTwoViewController-didReceiveMemoryWarning");
}


@end
